define(function(require, exports, module) {
	var template = require("template");
	var getLibraryList = require("./libraryList.js");
	getLibraryList.libraryList("libraryList", "#mui-list");
	var newAdd = require("../chioceProduct/newAdd.js");
	mui('.mui-scroll-wrapper').scroll({
		deceleration: 0.0005 //flick 减速系数，系数越大，滚动速度越慢，滚动距离越小，默认值0.0006
	});
	//选择仓库
	newAdd.newLibrary(".library-list");

	var abpdata = require("abpinit");
	var abp = abpdata.abpstart;
	//调用页面权限控制接口
	var sourceType = abp.sourceType; //获取权限类型接口数据
	var authorityInit = require("operatAuthority"); //调用封装的权限方法
	var authorityData = sessionStorage.getItem('operatAuthorityData'); //获取权限数据
	var authorityWhInfoDet = authorityInit.getJurisdiction(authorityData, sourceType.WH_INFO); //仓库权限判断
	if(authorityWhInfoDet.indexOf(2) === -1) {
		$("header > a").remove();
	} else {
		$("header > a").show();
	}
	require('http://g.alicdn.com/ilw/ding/0.8.9/scripts/dingtalk.js');
	//钉钉返回清除缓存
	var dingTalkNav = require('dd_config');
	//ios
	dingTalkNav.LeftNavBar();
	//ad
	dingTalkNav.leftAndroid();

});